<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/tag.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="theme" content="basic_theme" />
</head>
<body>
	<!-- content-wrapper -->
	<div class="col-md-10 content-wrapper">
		<div class="row">
			<div class="col-md-4 ">
				<ul class="breadcrumb">
					<li><i class="fa fa-home"></i><a href="${ctx}/main">首页</a></li>
					<li class="active">客户查询</li>
				</ul>
			</div>
		</div>
		<!-- main -->
		<div class="content">
			<div class="main-content">
				<!-- WIDGET TICKET TABLE -->
				<div class="widget-content">
					<!-- INLINE FORM -->
					<div class="widget-content">


						<form class="form-inline" role="search"
							action="${ctx}/custom_query" method="post">

							<div class="form-group">
								<input type="text" class="form-control" placeholder="输入客户姓名"
									id="customname" name="customname" value="${params.customname}" />
							</div>
							<div class="form-group">
								<input type="text" class="form-control" placeholder="输入手机号码"
									id="iphone" name="iphone" value="${params.iphone}" />
							</div>

							<input type="hidden" name="${_csrf.parameterName}"
								value="${_csrf.token}" />
							<button type="submit" class="btn btn-primary">查询</button>
						</form>
					</div>
					<!-- /.row -->
					<div class="table-responsive">
						<table class="table table-striped">
							<thead>
								<tr>
									<th>#</th>
									<th>客户姓名</th>
									<th>手机</th>
									<th>身份证</th>
									<th>时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${list.content}" var="item" varStatus="status">
									<tr>
										<td>${status.count }</td>
										<td>${item.customname }</td>
										<td>${item.iphone }</td>
										<td>${item.cardid }</td>
										<td>${item.in_date }</td>
										<td><a class="btn btn-info btn-sm"
											href="${ctx}/custom_query_page?id=${item.id }" role="button">详情</a>
										</td>

									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<pagebar:pagebar total="${list.totalPages}"
			current="${list.number + 1}" />

	</div>
	<!-- /main -->
</body>
</html>